package santeclair.referentiel.optique.exception;

/**
 * @author pveronneau
 * 
 */
public class ServiceOptiqueException extends Exception {
    private static final long serialVersionUID = -2707219946496059793L;

    private final String code;

    /**
     *
     */
    public ServiceOptiqueException(String code) {
        super();
        this.code = code;
    }

    /**
     * @param message
     */
    public ServiceOptiqueException(String code, String message) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

}
